home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTRRRRYYYYLLLLOOOOCCCCKKKK((((DDDD3333)))) TTTTRRRRYYYYLLLLOOOOCCCCKKKK((((DDDD3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- _TTTT_RRRR_YYYY_LLLL_OOOO_CCCC_KKKK - try to acquire a basic lock
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_kkkk_ssss_yyyy_nnnn_cccc_hhhh_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
- _iiii_nnnn_tttt _TTTT_RRRR_YYYY_LLLL_OOOO_CCCC_KKKK_((((_llll_oooo_cccc_kkkk______tttt _****_l_o_c_k_p_,,,, _pppp_llll______tttt _p_l_))))_;;;;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _l_o_c_k_p Pointer to the basic lock to be acquired.
-
- _p_l The interrupt priority level to be set while the lock is held
- by the caller.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- If the lock specified by _l_o_c_k_p is immediately available (can be acquired
- without waiting) _TTTT_RRRR_YYYY_LLLL_OOOO_CCCC_KKKK sets the interrupt priority level in accordance
- with the value specified by _p_l and acquires the lock. If the lock is not
- immediately available, the function returns without acquiring the lock.
-
- RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
- If the lock is acquired, _TTTT_RRRR_YYYY_LLLL_OOOO_CCCC_KKKK returns the previous interrupt priority
- level for use by UNLOCK. If the lock is not acquired the value _iiii_nnnn_vvvv_pppp_llll is
- returned.
-
- UUUUSSSSAAAAGGGGEEEE
- Because some implementations require that interrupts that might attempt
- to acquire the lock be blocked on the processor on which the lock is
- held, portable drivers must specify a _p_l value that is sufficient to
- block out any interrupt handler that might attempt to acquire this lock.
- See the description of the _m_i_n__p_l argument to _LLLL_OOOO_CCCC_KKKK______AAAA_LLLL_LLLL_OOOO_CCCC(D3) for
- additional discussion and a list of the valid values for _p_l.
-
- _TTTT_RRRR_YYYY_LLLL_OOOO_CCCC_KKKK may be used to acquire a lock in a different order from the order
- defined by the lock hierarchy.
-
- When called from interrupt level, the _p_l argument must not specify a
- priority level below the level at which the interrupt handler is running.
-
- LLLLeeeevvvveeeellll
- Base or Interrupt.
-
- SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
- Does not sleep.
-
- Driver-defined basic locks, read/write locks, and sleep locks may be held
- across calls to this function.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- TTTTRRRRYYYYLLLLOOOOCCCCKKKK((((DDDD3333)))) TTTTRRRRYYYYLLLLOOOOCCCCKKKK((((DDDD3333))))
-
-
-
- RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
- _LLLL_OOOO_CCCC_KKKK(D3), _LLLL_OOOO_CCCC_KKKK______AAAA_LLLL_LLLL_OOOO_CCCC(D3), _LLLL_OOOO_CCCC_KKKK______DDDD_EEEE_AAAA_LLLL_LLLL_OOOO_CCCC(D3), _UUUU_NNNN_LLLL_OOOO_CCCC_KKKK(D3)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-